﻿using System.Windows;
using System.Windows.Data;

namespace Songhay.Mvvm.Models
{
    /// <summary>
    /// MVVM Light Message Content for <see cref="FrameworkElement"/>.
    /// </summary>
    /// <typeparam name="TElement">The type of the control.</typeparam>
    public class LightContentForFrameworkElement<TElement> where TElement : FrameworkElement
    {
        /// <summary>
        /// Gets or sets the binding of context.
        /// </summary>
        /// <value>
        /// The binding of context.
        /// </value>
        public Binding BindingOfContext { get; set; }

        /// <summary>
        /// Gets or sets the data of context.
        /// </summary>
        /// <value>
        /// The data of context.
        /// </value>
        public object DataOfContext { get; set; }

        /// <summary>
        /// Gets or sets the element.
        /// </summary>
        /// <value>
        /// The element.
        /// </value>
        public TElement Element { get; set; }
    }
}
